package com.fzy.modules.people.web;

import com.fzy.modules.people.entity.Org;
import com.fzy.modules.people.service.OrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 组织机构Controller
 *
 */
@RestController
@RequestMapping(value = "/api/people/org")
public class OrgController {
    @Autowired
    OrgService orgService;
    @GetMapping(value = "/list")
    public List<Org> findAllList(){
        return orgService.findAllList();
    }
}
